const index = (resolve) => {
  import('../page/index.vue').then((module) => {
    resolve(module)
  })
}
//登录
const login = (resolve) => {
  import('../page/login.vue').then((module) => {
    resolve(module)
  })
}
//管理员-客户管理
//客户管理
const customerList = (resolve) => {
  import('../components/admin/customerManage/customerList.vue').then((module) => {
    resolve(module)
  })
}
//管理员-短信管理
//通道管理
const channelList = (resolve) => {
  import('../components/admin/smsManage/channelList.vue').then((module) => {
    resolve(module)
  })
}
//模板管理
const templateList = (resolve) => {
  import('../components/admin/smsManage/templateList.vue').then((module) => {
    resolve(module)
  })
}


//管理员-账单管理
//充值明细
const rechargeDetails = (resolve) => {
  import('../components/admin/billManage/rechargeDetails.vue').then((module) => {
    resolve(module)
  })
}
//发送批次
const sendBatch = (resolve) => {
  import('../components/admin/billManage/sendBatch.vue').then((module) => {
    resolve(module)
  })
}
//发送明细
const sendDetails = (resolve) => {
  import('../components/admin/billManage/sendDetails.vue').then((module) => {
    resolve(module)
  })
}

//客户-短信发送
const smsSend = (resolve) => {
  import('../components/user/smsManage/smsSend.vue').then((module) => {
    resolve(module)
  })
}



//客户-账单管理
//充值明细
const userRechargeDetails = (resolve) => {
  import('../components/user/billManage/rechargeDetails.vue').then((module) => {
    resolve(module)
  })
}
//发送批次
const userSendBatch = (resolve) => {
  import('../components/user/billManage/sendBatch.vue').then((module) => {
    resolve(module)
  })
}
//发送明细
const userSendDetails = (resolve) => {
  import('../components/user/billManage/sendDetails.vue').then((module) => {
    resolve(module)
  })
}



export default [{
    path: '/',
    redirect: 'index'
  },
  {
    path: '/login',
    name: 'login',
    component: login
  },
  {
    path: '/index',
    name: 'index',
    component: index,
    children: [
      //客户管理
      {
        path: '/admin/customerList',
        name: 'customerList',
        component: customerList
      },
      //通道管理
      {
        path: '/admin/channelList',
        name: 'channelList',
        component: channelList
      },
      //模板管理
      {
        path: '/admin/templateList',
        name: 'templateList',
        component: templateList
      },
      //充值明细
      {
        path: '/admin/rechargeDetails',
        name: 'rechargeDetails',
        component: rechargeDetails
      },
      //发送明细
      {
        path: '/admin/sendBatch',
        name: 'sendBatch',
        component: sendBatch
      },
      //发送批次
      {
        path: '/admin/sendDetails',
        name: 'sendDetails',
        component: sendDetails
      },
      //客户-短信发送
      {
        path: '/user/smsSend',
        name: 'smsSend',
        component: smsSend
      },
      //客户-充值明细
      {
        path: '/user/rechargeDetails',
        name: 'userRechargeDetails',
        component: userRechargeDetails
      },
      //客户-发送明细
      {
        path: '/user/sendBatch',
        name: 'userSendBatch',
        component: userSendBatch
      },
      //客户-发送批次
      {
        path: '/user/sendDetails',
        name: 'userSendDetails',
        component: userSendDetails
      }
    ]
  }
]
